package com.fangcun.service.admin;

import com.fangcun.bean.admin.user.response.UserDetailAdminResponse;
import com.fangcun.bean.admin.user.response.UserRoleResponse;
import com.fangcun.bean.sys.PageBean;
import com.fangcun.common.exception.ProException;
import com.fangcun.entity.AdminUserRole;
import com.fangcun.entity.User;
import com.github.pagehelper.PageInfo;

public interface UserService {

	// 后台管理-用户列表
	public PageInfo<User> selectUser(PageBean<User> request) throws ProException;

	// 根据id查询 -用户详情
	public UserDetailAdminResponse selectById(Long id) throws ProException;

	// 修改用户信息
	public int updateUser(User record) throws ProException;
	
	//角色修改department_id (修改部门 角色 两个参数)
	public void updateRole(AdminUserRole request)throws ProException;
	
	/**管理员列表**/
	public PageInfo<UserRoleResponse> listUserRole(PageBean<User> request)throws ProException;
	
	/**角色详情**/
	public AdminUserRole details(Long id)throws ProException;
}
